<template>
	<view class="content">
		<uni-list>
			<uni-list-item title="用户名" :rightText="username.nickname" showArrow="true" :clickable="true"></uni-list-item>
			<uni-list-item title="用户角色" :rightText="userIdentity" showArrow="true" :clickable="true"></uni-list-item>
		</uni-list>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				username: '',   // 用户名
				userIdentity: '',   // 用户角色
			};
		},
		onLoad() {
			this.username = this.$store.state.userName;
			this.userIdentity = this.$store.state.userIdentity.name
		},
		methods: {
		
		}
	}
</script>

<style lang="scss">
.content {
	width: 100%;
	min-height: calc(100vh - 95rpx);
	background: #F9F9F9;
}
.img-bg {
	width: 80vw;
	height: 80vw;
	margin: 10vw;
}
</style>
